var express = require('express');
var router = express.Router();

/* GET users listing. */
router.all('/', function(req, res, next) {
    console.log('调用/users路由');
    next();
});
router.get('/',function (req, res) {
    console.log('查看获取');
    res.send('查看获取');
});
router.post('/',function (req, res) {
    console.log('更改或添加');
    res.send('更改或添加');
});
router.put('/',function (req, res) {
    console.log('添加');
    res.send('添加');
});
router.delete('/',function (req, res) {
    console.log('删除');
    res.send('删除');
});

module.exports = router;
